home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / examples.lha / examples / ann / Makefile < prev    next >
Encoding:
Makefile  |  1991-10-18  |  800 b   |  48 lines

  1.  
  2. # @(#)Makefile  07/19/90
  3. #
  4. # Makefile for compiling HDF test routines to test annotations interface
  5. #
  6. # Note: change these paths to conform to your system:
  7.  
  8.  
  9. MACHINE = SUN
  10.  
  11. INCDIR = /stg1/dilg/r5
  12. LIBS    = /stg1/dilg/testr5/lib/libdf.a -lm
  13. FILESDIR = ../files
  14.  
  15. RM      = rm -f
  16. CC      = cc
  17. FC      = f77
  18. DEFS    = -D${MACHINE}
  19.  
  20. CFLAGS  = -g ${DEFS} -I${INCDIR}
  21. FFLAGS  = -g
  22. LDFLAGS =
  23.  
  24. CPROGS  = file_ann getSDSan getSDSlblst putSDS_RISan
  25. FPROGS  = file_annF get1anF getSDSlblstF
  26. COBJS   = gen2Dfloat.o
  27.  
  28. all:    ${COBJS} cprogs fprogs 
  29.  
  30. cprogs: ${CPROGS}
  31.  
  32. fprogs: ${FPROGS}
  33.  
  34. $(CPROGS):
  35.     ${CC} ${CFLAGS} $@.c ${LDFLAGS} ${COBJS} ${LIBS} ${GLIBS} -o $@
  36.  
  37.  
  38. $(FPROGS):
  39.     ${FC} ${FFLAGS} $@.f ${LDFLAGS} ${COBJS} ${LIBS} ${GLIBS} -o $@
  40.  
  41. cleanup:
  42.     -${RM} $(CPROGS)
  43.     -${RM} $(FPROGS)
  44.     -${RM} o?
  45.     -${RM} *.o
  46.  
  47.  
  48.